<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文档新增</title>
<%@ include file="/pages/inc/header.jsp" %>
<script type="text/javascript">
<%@ include file="/js/extends/jquery.form.js" %>
<%@ include file="/pages/jsp/commom/validator.js" %>
<%@ include file="/pages/jsp/docInfo/docInfoDataAdd.js" %>
</script>
</head>
<body>
<div class="main"">
	<form id="docInfoForm">
	<input type="hidden" id="id" name="id" value="<c:out value='${affDocument.id}'/>">
	<table class="inputTable" cellpadding="0" cellspacing="0" style="height: 100%;">
		<tr>
			<td class="staticTd" style="width: 15%;">标题：</td>
			<td class="dynamicTd" style="width: 85%;">
				<input id="title" name="title" type="text" value="<c:out value='${affDocument.title}'/>" style="min-width: 152px;" />
			</td>
		</tr>
		<tr>
			<td class="staticTd">文档目录：</td>
			<td class="dynamicTd">
				<input id="catalogId" name="catalogId" value="<c:out value='${affDocument.catalogId}'/>" type="hidden" />
				<input id="permissionType" name="permissionType" value="<c:out value='${affDocument.permissionType}'/>" type="hidden" />
				<c:out value='${catalogName}'/>
			</td>
		</tr>
		<tr>
			<td class="staticTd">选择文件：</td>
			<td class="dynamicTd">
				<input id="templateFile" name="templateFile" />
			</td>
		</tr>
		
		<c:if test="${not empty docClassList}">
			<c:forEach  var="bean" items="${ docClassList }" varStatus="s">
				<tr>
					<td class="staticTd"><c:out value='${bean.name}'/>：</td>
					<td class="dynamicTd">
						<input id="docClassNames<c:out value='${s.index}'/>" name="docClassNames" type="text" onclick="openTree('<c:out value='${s.index}'/>','<c:out value='${bean.num}'/>','<c:out value='${bean.id}'/>');" value=""/>
						<input id="docClassIds<c:out value='${s.index}'/>" name="docClassIds" type="hidden" value=""/>
					</td>
				</tr>
			</c:forEach>
		</c:if>	
		
		<tr>
			<td class="staticTd">文档摘要：</td>
			<td class="dynamicTd">
			  <textarea id="description" name="description" style="width:98%;height:50px;"><c:out value='${affDocument.description}'/></textarea>
			</td>
		</tr>
		<tfoot>
			<td class="footTd" colspan="2">
				<div class="inlineBlock">  
					<a id="saveButton" href="#" class="easyui-linkbutton" plain="true" icon="icon-save">保存</a>
				</div> 
			</td>
		</tfoot>
	</table>
	</form>
</div>
</body>
</html>